package com.example.a10928.weifriend.adapter

import android.content.Intent
import android.graphics.drawable.Drawable
import android.support.v7.widget.RecyclerView
import android.text.TextUtils
import android.view.View
import android.widget.ImageView

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.a10928.weifriend.App.activity
import com.example.a10928.weifriend.R
import com.example.a10928.weifriend.http.api.Api
import com.example.a10928.weifriend.http.api.base.CarMallBean
import com.example.a10928.weifriend.ui.home.WebViewActivity
import com.squareup.picasso.Picasso

class ImageAdapter(layoutResId: Int, data: List<String>) : BaseQuickAdapter<String, BaseViewHolder>(layoutResId, data) {
    override fun convert(helper: BaseViewHolder?, item: String?) {
        val iv = helper!!.itemView.findViewById<ImageView>(R.id.item_car_store_iv)
        Picasso.with(mContext).load(item!!).into(iv)
    }

}
